Fix `make install` on Windows
authorklutzy <klutzytheklutzy@gmail.com>
Thu, 18 Sep 2014 17:34:35 +0000 (02:34 +0900)
committerklutzy <klutzytheklutzy@gmail.com>
Fri, 19 Sep 2014 01:56:55 +0000 (10:56 +0900)
commit7c9080e2bd3f1008cef924b757d6faba657376ba
tree8d0594c9a6457d4f8fc428a98938f95d3ca417bf
parent5e4c184b55b12a21ddae90e5751e95ee5aad0528
Fix `make install` on Windows

Since `Makefile` passes `--destdir="$$(DESTDIR)/"` to `install.sh`,
`make install` tries to install libraries to
`$CFG_DESTDIR$CFG_PREFIX/$CFG_LIBDIR_RELATIVE` which is usually
`//path/to/usr/$CFG_LIBDIR_RELATIVE`.

The POSIX spec [1] states that if path begins with `//` it is
implementation-defined.
Usual systems treat them as normal abaolute path, but cygwin and MSYS
does not! They use `//hostname/path` syntax for network drives.
This caused `make install` issue on Windows.

This patch removes `/` of destdir to solve the issue.

[1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12
Makefile.in